<?php
use yii\helpers\Html;
use yii\helpers\Url;
use yii\widgets\LinkPager;
?>

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>首页</title>
    <meta name="description" content="这是主页">
    <meta name="keywords" content="form">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <link rel="stylesheet" href="css/chinaz.css">
    <link rel="stylesheet" href="css/amazeui.swiper.min.css">
    <!--//上面的是layout文件下面的是单独的-->
    <link rel="stylesheet" href="css/index.css">
    <!--<link rel="stylesheet" href="css/amazeui.slick.min.css">
    -->
    <!--<link rel="icon" type="image/png" href="assets/i/favicon.png">
    -->
    <!--<link rel="apple-touch-icon-precomposed" href="assets/i/app-icon72x72@2x.png">
    -->
    <!--<meta name="apple-mobile-web-app-title" content="Amaze UI" />
    -->
    <link rel="stylesheet" href="assets/css/amazeui.min.css"/>
    <link rel="stylesheet" href="assets/css/layout.css"/>
    <!--<link rel="stylesheet" href="assets/css/admin.css">--></head>
<body>
<!--<div style="background-color: #FFFFFF;height: 60px">-->
<!--    <img src="img/logo-06.png" id="layoutLogo" style="float: left;margin-left: 5%;margin-right: 30px">-->
<!---->
<!--    <div id='cssmenu' style="float: left">-->
<!--        <ul>-->
<!---->
<!--            <li class="active">-->
<!--                <a href=-->
<!--                --><?//= Url::toRoute('index/show'); ?>
<!--                >首页</a>-->
<!--            </li>-->
<!---->
<!--            <li>-->
<!--                <a href=-->
<!--                --><?//= Url::toRoute('project/show'); ?>
<!--                >创业项目</a>-->
<!--            </li>-->
<!--            <li class=' has-sub'>-->
<!--                <a href=-->
<!--                --><?//= Url::toRoute('raised/show'); ?>
<!--                >项目聚幕</a>-->
<!--                <ul>-->
<!--                    <li class='has-sub sub-li'>-->
<!--                        <a href=-->
<!--                        --><?//= Url::toRoute('raised/show'); ?>
<!--                        >投资聚募</a>-->
<!--                    </li>-->
<!--                    <li class='has-sub sub-li'>-->
<!--                        <a href=-->
<!--                        --><?//= Url::toRoute('raised/select'); ?>
<!--                        >我要融资</a>-->
<!---->
<!--                    </li>-->
<!--                </ul>-->
<!--            </li>-->
<!--            <li class=' has-sub'>-->
<!--                <a href=-->
<!--                --><?//= Url::toRoute('basic-service/show-activity'); ?>
<!--                >基础服务</a>-->
<!--                <ul>-->
<!--                    <li class='has-sub sub-li'>-->
<!--                        <a href=-->
<!--                        --><?//= Url::toRoute('basic-service/show-activity'); ?>
<!--                        >线下活动</a>-->
<!--                    </li>-->
<!--                    <li class='has-sub sub-li'>-->
<!--                        <a href=-->
<!--                        --><?//= Url::toRoute('basic-service/show-information'); ?>
<!--                        >创业资讯</a>-->
<!--                    </li>-->
<!--                    <li class='has-sub sub-li'>-->
<!--                        <a href=-->
<!--                        --><?//= Url::toRoute('basic-service/show-business'); ?>
<!--                        >工商注册</a>-->
<!--                    </li>-->
<!--                    <li class='has-sub sub-li'>-->
<!--                        <a href=-->
<!--                        --><?//= Url::toRoute('basic-service/show-finance'); ?>
<!--                        >财务代办</a>-->
<!--                    </li>-->
<!--                    <li class='has-sub sub-li'>-->
<!--                        <a href=-->
<!--                        --><?//= Url::toRoute('basic-service/show-law'); ?>
<!--                        >法务咨询</a>-->
<!--                    </li>-->
<!--                </ul>-->
<!--            </li>-->
<!--        </ul>-->
<!--    </div>-->
<!--    <div class="isLogin">-->
<!--        <ul>-->
<!--            <li>-->
<!--                <img src="img/join.png">-->
<!--                <span>免费注册</span>-->
<!--            </li>-->
<!--            <li>-->
<!--                <img src="img/login.png" style="margin-top: -4px">-->
<!--                <span style="color: #3A99DB">登陆</span>-->
<!--            </li>-->
<!--        </ul>-->
<!--    </div>-->
<!--</div>-->

<div id="firstDiv" style="padding-top: 30px">
    <div data-am-widget="slider" class="am-slider am-slider-b3" data-am-slider='{&quot;controlNav&quot;:false}'>
        <ul class="am-slides">
            <!-- 广告轮播 -->
      <?php foreach ($pictures as $picture): ?>
        <li>
          <img src=
          <?= Html::encode($picture->image) ?>
          />
        </li>
      <?php endforeach; ?>  
        </ul>
    </div>
    <div id="underPicButton">
        <div style="width: 400px;">
            <span style="margin-left: 30px;margin-right: 20px">创建您的项目</span>
            <img src="img/cut.png"/>
        </div>
        <div style="width: 40%;">
            <a href="
            <?= Url::toRoute('project/show'); ?>
            ">
            <span style="margin-left: 20px;margin-right: 20px;">查找好的项目</span>
            </a>
            <img src="img/cut.png"/>
        </div>
        <div style="width: 40%;">
            <span style="margin-left: 20px;margin-right: 20px;">申请成为投资人</span>
            <img src="img/cut.png"/>
        </div>
        <!--<img src="img/tel.png" style="width: 120px;height: auto"/>
        -->
        <div style="float: right;margin-right: 3%;padding-top: 10px">
            <span style="font-size: 12px;color: #B6c1c9">联系我们：0571-28882811&nbsp;&nbsp;&nbsp;&nbsp;</span>
            <a style="font-size: 12px;color:#3A99DB" href="#">关于创坞</a>
        </div>
    </div>
    <img src="img/blue.png" style="width:86%;margin-left: 7%;margin-top: -12px ">
    <div style="width: 100%;margin-top: 20px;text-align: center;margin-bottom: 40px">

        <span style="text-align: center;font-size: 26px;font-weight: 700">在这里，最新最好的项目为您呈现。</span>
        <br>
        <a href="
        <?= Url::toRoute('project/show'); ?>
        " style="text-align: center;font-size: 22px">
            <h4 style="display: inline">进一步了解</h4><img src="img/right.png" style="width: 50px;margin-left: -14px">
        </a>
    </div>
    <div class="swiper-container" id="demo13" style="margin-bottom: 30px">
        <!-- Additional required wrapper -->
        <div class="swiper-wrapper" style="width: 80%">
            
            <!-- 推荐项目 -->
  <?php foreach ($projects as $project): ?>
    <div class="swiper-slide" style="background-color: #FFFFFF;padding-bottom: 6px">
      <a href="
            <?= Url::toRoute(['project/show-detail','pr_id' => $project->pr_id]); ?>
            ">
      <img src=
      <?= Html::encode($project->avatar) ?>
      class="swiperImg"/></a>
      <div style="margin-left: 6%">
                    <a href="
             <?= Url::toRoute(['project/show-detail','pr_id' => $project->pr_id]); ?>
             ">
                    <h3 style="display: inline;margin-bottom: 6px">
                    <?= Html::encode($project->title) ?>
                    </h3></a><br>
                    <div style="margin-top:2px;border-radius:4px;float: left;font-size: 14px;color: #7f8c8d;background-color: #dfe5e9;width: 50px;text-align: center">
                        <span style="font-size:12px">
                        <?php 
                if(0 == $project->status)
                {
                echo '未开始';
                }
                else if(1 == $project->status)
                {
                echo '招募中';
                }
                else if(2 == $project->status)
                {
                echo '已过期';
                }
                ?>
                        </span>
                    </div>
                    <c style="color: #B6c1c9">
                        <img src="img/eyes.png" style="width:20px;margin-left: 10px;margin-top:-4px;margin-right: 2px">
                          <?= Html::encode($project->read_num) ?>
                        <img src="img/talk.png" style="width:20px;margin-left: 10px;margin-top:-2px;margin-right: 4px">
                        <?= Html::encode($project->comment_num) ?>
                        
                    </c>
                    <hr data-am-widget="divider" style="width: 92%;margin-left: -1%;margin-top: 6px"
                        class="am-divider am-divider-default"/>

                    <div style="margin-top: -10px;margin-bottom: 8px">
                        <span>项目需求：</span><br>
                        <span style="color: #7f8c8d">
                        <?= Html::encode($project->need) ?>
                        </span>
                    </div>
                </div>
    </div>
  <?php endforeach; ?>
        </div>

        <div class="swiper-scrollbar"></div>
    </div>
</div>

<div id="secDiv">
    <div class="buttonDiv">
        <button id="recommend" class=
        <?php
    if("recommend" == $raised || null == $raised)
      echo "isClick";
    ?>
        >推荐聚募</button>
        <button id="new" class=
        <?php
    if("new" == $raised)
      echo "isClick";
    ?>
        >最新聚募</button>
        <a href="
        <?= Url::toRoute('raised/show'); ?>
        "><button style="float: right" class="isClick">更多+</button></a>
    </div>
    
    <!-- 聚募模块 -->
<?php foreach ($raiseds['raiseds'] as $raised): ?>
  <div class="detail">
  <a href="
            <?= Url::toRoute(['raised/show-detail','raised_id' => $raised->raised_id]); ?>
            " class="url">
    <img src=
    <?= Html::encode($raised->avatar) ?>
    class="detailImg"/></a>
    <div style="float: left;margin-left: 10px;width: 48%">

      <div style="display:inline;background-color: #3A99DB;border-radius: 4px;width: 70px;height: 34px;font-size: 16px;color: white;padding-left: 12px;padding-right:4px;padding-top: 2px;padding-bottom: 4px" class="status">
        <?php
        if(0 == $raised->type)
          echo "预热中"; 
        else if(1 == $raised->type)
          echo "聚募中";
        else if(2 == $raised->type)
          echo "聚募成功";  
        ?>
      </div>
      <a href="
            <?= Url::toRoute(['raised/show-detail','raised_id' => $raised->raised_id]); ?>
            " class="url">
      <span style="font-size: 18px;margin-left: 14px" class="title">
        <?= Html::encode($raised->title) ?>
      </span></a>
      <div style="display: inline;float: right;font-size: 12px;color: #9aabb7;padding-top: 6px;padding-right: 10px">
        <img src="img/eyes.png" style="width: 18px;margin-top: -4px">
        <?= Html::encode($raised->visitors) ?>
      </div>
      <hr data-am-widget="divider" style="margin-top: 8px;margin-bottom:10px;border-top:1px solid #2d3e4f" class="am-divider am-divider-default" />
      <span style="font-size: 15px;color: #000000;margin-left: 10px">领投人：</span>
      <span style="font-size: 15px;color: #9aabb7" class="leader">
        <?= Html::encode($raised->leader_name) ?>
      </span>
      <span style="font-size: 15px;color: #000000;margin-left: 40px">推荐人：</span>
      <span style="font-size: 15px;color: #9aabb7" class="referrer">
        <?= Html::encode($raised->referrer_name) ?>
      </span>
      <div style="width: 100%;background-color: #dfe5e9;border-radius: 4px;height: 14px;margin-top: 6px;margin-bottom: 10px">
        <div style="width: <?= Html::encode($raised->progress) ?>%;background-color: #3A99DB;height: 100%;border-radius: 4px;font-size: 12px" class="progressWidth">
          <div style="float: right;margin-top: -2px;color: #FFFFFF;margin-right: 3px" class="progress">
            <?= Html::encode($raised->progress) ?>
            %</div>
          </div>
        </div>
        <span style="font-size: 15px;color: #000000;margin-left: 10px">已融资：</span>
        <span style="font-size: 15px;color: #9aabb7" class="raisedMoney">
          <?= Html::encode($raised->raisedMoney) ?>
          万元</span>
          <span style="font-size: 15px;color: #000000;margin-left: 40px">融资总额：</span>
          <span style="font-size: 15px;color: #9aabb7" class="totalMoney">
            <?= Html::encode($raised->totalMoney) ?>
            万元</span>
            <div style="margin-top: 14px">
              <span style="font-size: 15px;color: #000000;margin-left: 10px">剩余时间：</span>
              <span style="font-size: 15px;color: #9aabb7" class="days">
                <?php 
                if($raised->days > 0)
                {
                  echo Html::encode($raised->days)."天";
                }
                else
                {
                  echo "已过期";
                }
                ?>
              </span>
            </div>
            <div style="margin-top: 14px">
              <span style="font-size: 15px;color: #000000;margin-left: 10px">领投起点：</span>
              <span style="font-size: 15px;color: #9aabb7" class="purchaseLimit">
                <?= Html::encode($raised->purchaseLimit) ?>
                万元</span>
              </div>
            </div>
          </div>
        <?php endforeach; ?>
    

    

    <!-- </div>
    <div id="pages">
        <button class="readPage">1</button>
        <button>2</button>
        <button>3</button>
        <button style="padding-bottom: 12px">...</button>
    </div> -->
</div>
<div id="thirdDiv">
    <div class="buttonDiv">
        <button class="isClick" style="background-color: #eff3f5">创业团队</button>

        <a href="
        <?= Url::toRoute('basic-service/show-information'); ?>
        "><button style="float: right;background-color: #eff3f5" class="isClick">更多+</button></a>
    </div>
    <div style="width: 100%;display: block">
    
            <?php 
  foreach ($teams as $key => $team)
  {
    if(0 == $key)
    {
      echo '<div style="float: left;width: 49.5%;margin-bottom: 20px;background-color: #eff3f5;height: auto">
            <img src='.$team->avatar.' style="height: auto;width: 100%">
            <div style="background-color: #000000;opacity: 0.7;position: relative;bottom: 50px;height: 50px;color: #FFFFFF;font-size: 26px;padding-top: 4px">
                '.$team->title.'
            </div>
        </div>
        <div style="float: left;width: 50.5%">';
      }
      else if(1 == $key || 2 == $key)
      {
        echo '<div style="float: left;margin-left: 8px;width: 48%">
                <img src='.$team->avatar.' style="width: 100%">
                <div style="background-color: #000000;opacity: 0.7;position: relative;bottom: 25px;height: 25px;color: #FFFFFF;font-size: 16px;padding-top: 0px">
                    '.$team->title.'
                </div>
            </div>';
      }
      else if(3 == $key || 4 == $key)
      {
        echo '<div style="float: left;margin-left: 8px;width: 48%;margin-top: -18px">
                <img src='.$team->avatar.' style="width: 100%">
                <div style="background-color: #000000;opacity: 0.7;position: relative;bottom: 25px;height: 25px;color: #FFFFFF;font-size: 16px;padding-top: 0px">
                    '.$team->title.'
                </div>
            </div>';
      }
    }
    ?>
        </div>
        <div style="clear: both">&nbsp;</div>
    </div>
</div>
<div style="background-color:#eff3f5;width: 100%;padding: 6px;clear: both">
    <div id="fourthDiv">
        <div data-am-widget="tabs"
             class="am-tabs am-tabs-d2"
        >
            <ul class="am-tabs-nav am-cf" style="background-color: #FFFFFF;width: 30%">
                <li class="am-active">
                    <a href="[data-tab-panel-0]">活动</a>
                </li>
                <li class="">
                    <a href="[data-tab-panel-1]">新闻</a>
                </li>
                <li class="">
                    <a href="[data-tab-panel-2]">公告</a>
                </li>
                
            </ul>
            <a href="
                <?= Url::toRoute('basic-service/show-information'); ?>
                "><button style="float: right" class="isClick">更多+</button></a>
            <div class="am-tabs-bd">
                <div data-tab-panel-0 class="am-tab-panel am-active">
                    
                <?php foreach ($informations['informations'][0] as $information): ?>
        <hr data-am-widget="divider" style="margin-top: 8px;margin-bottom:10px;"
        class="am-divider am-divider-default"/>
        <div style="width: 100%">
          <img src=
          <?= Html::encode($information->avatar) ?>
          style="width: 25%;float: left">
          <div style="width: 74%;float: left;margin-left: 1%"><b>
          <?= Html::encode($information->title) ?>
          </b>
          <br>
            <span style="font-size: 14px;line-height:0;color: #7c7c7c">
            <?= Html::encode($information->content) ?>
            </span>
          </div>
          <div>&nbsp;</div>
          <div style="clear: both;float: right;color: #B6c1c9;font-size: 14px;margin-top: -14px">
            <img src="img/clock.png" style="width: 18px;margin-top: -4px">
            <span style="margin-left: 4px">
            <?= Html::encode($information->createdDate) ?>
            </span>
            <img src="img/eyes.png" style="width: 18px;margin-top: -4px;margin-left: 20px">
            <span style="margin-left: 2px">
            <?= Html::encode($information->visitors) ?>
            </span>
          </div>
        </div>
      <?php endforeach; ?>

                    <!-- <div id="pages" style="padding-top: 20px;clear:both">
                        <button class="readPage">1</button>
                        <button>2</button>
                        <button>3</button>
                        <button style="padding-bottom: 12px">...</button>
                    </div> -->
                </div>
                <div data-tab-panel-1 class="am-tab-panel ">
        <?php foreach ($informations['informations'][1] as $information): ?>
        <hr data-am-widget="divider" style="margin-top: 8px;margin-bottom:10px;"
        class="am-divider am-divider-default"/>
        <div style="width: 100%">
          <img src=
          <?= Html::encode($information->avatar) ?>
          style="width: 25%;float: left">
          <div style="width: 74%;float: left;margin-left: 1%"><b>
          <?= Html::encode($information->title) ?>
          </b>
          <br>
            <span style="font-size: 14px;line-height:0;color: #7c7c7c">
            <?= Html::encode($information->content) ?>
            </span>
          </div>
          <div>&nbsp;</div>
          <div style="clear: both;float: right;color: #B6c1c9;font-size: 14px;margin-top: -14px">
            <img src="img/clock.png" style="width: 18px;margin-top: -4px">
            <span style="margin-left: 4px">
            <?= Html::encode($information->createdDate) ?>
            </span>
            <img src="img/eyes.png" style="width: 18px;margin-top: -4px;margin-left: 20px">
            <span style="margin-left: 2px">
            <?= Html::encode($information->visitors) ?>
            </span>
          </div>
        </div>
      <?php endforeach; ?>
                    <!-- <div id="pages" style="padding-top: 20px;clear:both">
                        <button class="readPage">1</button>
                        <button>2</button>
                        <button>3</button>
                        <button style="padding-bottom: 12px">...</button>
                    </div> -->
                </div>
                <div data-tab-panel-2 class="am-tab-panel ">
                    <?php foreach ($informations['informations'][2] as $information): ?>
        <hr data-am-widget="divider" style="margin-top: 8px;margin-bottom:10px;"
        class="am-divider am-divider-default"/>
        <div style="width: 100%">
          <img src=
          <?= Html::encode($information->avatar) ?>
          style="width: 25%;float: left">
          <div style="width: 74%;float: left;margin-left: 1%"><b>
          <?= Html::encode($information->title) ?>
          </b>
          <br>
            <span style="font-size: 14px;line-height:0;color: #7c7c7c">
            <?= Html::encode($information->content) ?>
            </span>
          </div>
          <div>&nbsp;</div>
          <div style="clear: both;float: right;color: #B6c1c9;font-size: 14px;margin-top: -14px">
            <img src="img/clock.png" style="width: 18px;margin-top: -4px">
            <span style="margin-left: 4px">
            <?= Html::encode($information->createdDate) ?>
            </span>
            <img src="img/eyes.png" style="width: 18px;margin-top: -4px;margin-left: 20px">
            <span style="margin-left: 2px">
            <?= Html::encode($information->visitors) ?>
            </span>
          </div>
        </div>
      <?php endforeach; ?>
                    <!-- <div id="pages" style="padding-top: 20px;clear:both">
                        <button class="readPage">1</button>
                        <button>2</button>
                        <button>3</button>
                        <button style="padding-bottom: 12px">...</button>
                    </div> -->
                </div>

            </div>
        </div>

    </div>
</div>
<div style="background-color: #eff3f5;width: 100%;height: 40px">

</div>
<!--<footer style="background-color: #FFFFFF;height: 100px;width: 100%;margin-bottom: 20px">-->
<!--    <img src="img/logo-06.png" class="layoutLogo"-->
<!--         style="float: left;margin-left: 5%;margin-top:12px;margin-right: 30px">-->
<!--    <ul class="footUl">-->
<!--        <li><a href="#">商务合作</a></li>-->
<!--        <li><a href="#">常见问题</a></li>-->
<!--        <li><a href="#">关于我们</a></li>-->
<!--        <li><a href="#">业务规划</a></li>-->
<!--        <li><a href="#">联系我们</a></li>-->
<!--        <li><a href="#">免责声明</a></li>-->
<!--    </ul>-->
<!--    <img src="img/erweima.jpg" style="width: 80px;float: right;margin-right: 5%;margin-top:18px">-->
<!--</footer>-->
</body>
<script src="assets/js/jquery.min.js"></script>
<script src="js/index.js"></script>
<!--<![endif]-->
<script src="assets/js/amazeui.min.js"></script>
<!--<script src="js/chinaz.js"></script>-->
<script src="js/amazeui.swiper.min.js"></script>
<!--<script src="js/slick.min.js"></script>
-->
<!--<script src="assets/js/app.js"></script>
-->
</html>

<script>
    //推荐聚募
    $(document).ready(function(){
        $("#recommend").click(function(){
            $.get("<?= Url::toRoute('index/raised'); ?>",
                {'type':"recommend",'page':"1"},
                function(data){
                    var datas = JSON.parse(data);
                    var status;
                    var url;
                    //alert(JSON.parse(data)[0].user_id);
                    $('#new').removeClass('isClick');
                    $('#recommend').addClass('isClick');
                    $('.detail').each(function(i){
                        $(this).find(".url").attr("href","index.php?r=raised/show-detail&raised_id=" + datas[i].raised_id);
                        $(this).find(".detailImg").attr("src",datas[i].avatar);
                        if(0 == datas[i].type)
                        status = "预热中"; 
                        else if(1 == datas[i].type)
                        status = "聚募中";
                        else if(2 == datas[i].type)
                        status = "聚募成功";  
                        $(this).find(".status").html(status);
                        $(this).find(".title").html(datas[i].title);
                        $(this).find(".leader").html(datas[i].leader_name);
                        $(this).find(".referrer").html(datas[i].referrer_name);
                        $(this).find(".progressWidth").width(datas[i].progress + "%");
                        $(this).find(".progress").html(datas[i].progress + "%");
                        $(this).find(".raisedMoney").html(datas[i].raisedMoney + "万元");
                        $(this).find(".totalMoney").html(datas[i].totalMoney + "万元");
                        if(datas[i].days > 0)
                        {
                        $(this).find(".days").html(datas[i].days + "天");
                        }
                        else
                        {
                        $(this).find(".days").html("已过期");
                        }
                        $(this).find(".purchaseLimit").html(datas[i].purchaseLimit + "万元");
                        });
                });
        });
    });
    //最新聚募
    $(document).ready(function(){
        $("#new").click(function(){
            $.get("<?= Url::toRoute('index/raised'); ?>",
                {'type':"new",'page':"1"},
                function(data){
                    var datas = JSON.parse(data);
                    var status;
                    //alert(JSON.parse(data)[0].user_id);
                    $('#recommend').removeClass('isClick');
                    $('#new').addClass('isClick');
                    $('.detail').each(function(i){
                        $(this).find(".url").attr("href","index.php?r=raised/show-detail&raised_id=" + datas[i].raised_id);
                        $(this).find(".detailImg").attr("src",datas[i].avatar);
                        if(0 == datas[i].type)
                        status = "预热中"; 
                        else if(1 == datas[i].type)
                        status = "聚募中";
                        else if(2 == datas[i].type)
                        status = "聚募成功";  
                        $(this).find(".status").html(status);
                        $(this).find(".title").html(datas[i].title);
                        $(this).find(".leader").html(datas[i].leader_name);
                        $(this).find(".referrer").html(datas[i].referrer_name);
                        $(this).find(".progressWidth").width(datas[i].progress + "%");
                        $(this).find(".progress").html(datas[i].progress + "%");
                        $(this).find(".raisedMoney").html(datas[i].raisedMoney + "万元");
                        $(this).find(".totalMoney").html(datas[i].totalMoney + "万元");
                        if(datas[i].days > 0)
                        {
                        $(this).find(".days").html(datas[i].days + "天");
                        }
                        else
                        {
                        $(this).find(".days").html("已过期");
                        }
                        $(this).find(".purchaseLimit").html(datas[i].purchaseLimit + "万元");
                        });
                });
        });
    });
</script>